Optimal. Leaf size=130 \[ \frac {2 b^2 (a+b x)^{m+1} (c+d x)^{-m-1}}{(m+1) (m+2) (m+3) (b c-a d)^3}+\frac {(a+b x)^{m+1} (c+d x)^{-m-3}}{(m+3) (b c-a d)}+\frac {2 b (a+b x)^{m+1} (c+d x)^{-m-2}}{(m+2) (m+3) (b c-a d)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {45, 37} \[ \frac {2 b^2 (a+b x)^{m+1} (c+d x)^{-m-1}}{(m+1) (m+2) (m+3) (b c-a d)^3}+\frac {(a+b x)^{m+1} (c+d x)^{-m-3}}{(m+3) (b c-a d)}+\frac {2 b (a+b x)^{m+1} (c+d x)^{-m-2}}{(m+2) (m+3) (b c-a d)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 45
Rubi steps
\begin {align*} \int (a+b x)^m (c+d x)^{-4-m} \, dx &=\frac {(a+b x)^{1+m} (c+d x)^{-3-m}}{(b c-a d) (3+m)}+\frac {(2 b) \int (a+b x)^m (c+d x)^{-3-m} \, dx}{(b c-a d) (3+m)}\\ &=\frac {(a+b x)^{1+m} (c+d x)^{-3-m}}{(b c-a d) (3+m)}+\frac {2 b (a+b x)^{1+m} (c+d x)^{-2-m}}{(b c-a d)^2 (2+m) (3+m)}+\frac {\left (2 b^2\right ) \int (a+b x)^m (c+d x)^{-2-m} \, dx}{(b c-a d)^2 (2+m) (3+m)}\\ &=\frac {(a+b x)^{1+m} (c+d x)^{-3-m}}{(b c-a d) (3+m)}+\frac {2 b (a+b x)^{1+m} (c+d x)^{-2-m}}{(b c-a d)^2 (2+m) (3+m)}+\frac {2 b^2 (a+b x)^{1+m} (c+d x)^{-1-m}}{(b c-a d)^3 (1+m) (2+m) (3+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 112, normalized size = 0.86 \[ \frac {(a+b x)^{m+1} (c+d x)^{-m-3} \left (a^2 d^2 \left (m^2+3 m+2\right )-2 a b d (m+1) (c (m+3)+d x)+b^2 \left (c^2 \left (m^2+5 m+6\right )+2 c d (m+3) x+2 d^2 x^2\right )\right )}{(m+1) (m+2) (m+3) (b c-a d)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.04, size = 507, normalized size = 3.90 \[ \frac {{\left (2 \, b^{3} d^{3} x^{4} + 6 \, a b^{2} c^{3} - 6 \, a^{2} b c^{2} d + 2 \, a^{3} c d^{2} + 2 \, {\left (4 \, b^{3} c d^{2} + {\left (b^{3} c d^{2} - a b^{2} d^{3}\right )} m\right )} x^{3} + {\left (a b^{2} c^{3} - 2 \, a^{2} b c^{2} d + a^{3} c d^{2}\right )} m^{2} + {\left (12 \, b^{3} c^{2} d + {\left (b^{3} c^{2} d - 2 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} m^{2} + {\left (7 \, b^{3} c^{2} d - 8 \, a b^{2} c d^{2} + a^{2} b d^{3}\right )} m\right )} x^{2} + {\left (5 \, a b^{2} c^{3} - 8 \, a^{2} b c^{2} d + 3 \, a^{3} c d^{2}\right )} m + {\left (6 \, b^{3} c^{3} + 6 \, a b^{2} c^{2} d - 6 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3} + {\left (b^{3} c^{3} - a b^{2} c^{2} d - a^{2} b c d^{2} + a^{3} d^{3}\right )} m^{2} + {\left (5 \, b^{3} c^{3} - a b^{2} c^{2} d - 7 \, a^{2} b c d^{2} + 3 \, a^{3} d^{3}\right )} m\right )} x\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m - 4}}{6 \, b^{3} c^{3} - 18 \, a b^{2} c^{2} d + 18 \, a^{2} b c d^{2} - 6 \, a^{3} d^{3} + {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} m^{3} + 6 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} m^{2} + 11 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} m} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m - 4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 319, normalized size = 2.45 \[ -\frac {\left (a^{2} d^{2} m^{2}-2 a b c d \,m^{2}-2 a b \,d^{2} m x +b^{2} c^{2} m^{2}+2 b^{2} c d m x +2 b^{2} d^{2} x^{2}+3 a^{2} d^{2} m -8 a b c d m -2 a b \,d^{2} x +5 b^{2} c^{2} m +6 b^{2} c d x +2 a^{2} d^{2}-6 a b c d +6 b^{2} c^{2}\right ) \left (b x +a \right )^{m +1} \left (d x +c \right )^{-m -3}}{a^{3} d^{3} m^{3}-3 a^{2} b c \,d^{2} m^{3}+3 a \,b^{2} c^{2} d \,m^{3}-b^{3} c^{3} m^{3}+6 a^{3} d^{3} m^{2}-18 a^{2} b c \,d^{2} m^{2}+18 a \,b^{2} c^{2} d \,m^{2}-6 b^{3} c^{3} m^{2}+11 a^{3} d^{3} m -33 a^{2} b c \,d^{2} m +33 a \,b^{2} c^{2} d m -11 b^{3} c^{3} m +6 a^{3} d^{3}-18 a^{2} b c \,d^{2}+18 a \,b^{2} c^{2} d -6 b^{3} c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m - 4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.07, size = 528, normalized size = 4.06 \[ -\frac {x\,{\left (a+b\,x\right )}^m\,\left (a^3\,d^3\,m^2+3\,a^3\,d^3\,m+2\,a^3\,d^3-a^2\,b\,c\,d^2\,m^2-7\,a^2\,b\,c\,d^2\,m-6\,a^2\,b\,c\,d^2-a\,b^2\,c^2\,d\,m^2-a\,b^2\,c^2\,d\,m+6\,a\,b^2\,c^2\,d+b^3\,c^3\,m^2+5\,b^3\,c^3\,m+6\,b^3\,c^3\right )}{{\left (a\,d-b\,c\right )}^3\,{\left (c+d\,x\right )}^{m+4}\,\left (m^3+6\,m^2+11\,m+6\right )}-\frac {a\,c\,{\left (a+b\,x\right )}^m\,\left (a^2\,d^2\,m^2+3\,a^2\,d^2\,m+2\,a^2\,d^2-2\,a\,b\,c\,d\,m^2-8\,a\,b\,c\,d\,m-6\,a\,b\,c\,d+b^2\,c^2\,m^2+5\,b^2\,c^2\,m+6\,b^2\,c^2\right )}{{\left (a\,d-b\,c\right )}^3\,{\left (c+d\,x\right )}^{m+4}\,\left (m^3+6\,m^2+11\,m+6\right )}-\frac {2\,b^3\,d^3\,x^4\,{\left (a+b\,x\right )}^m}{{\left (a\,d-b\,c\right )}^3\,{\left (c+d\,x\right )}^{m+4}\,\left (m^3+6\,m^2+11\,m+6\right )}-\frac {b\,d\,x^2\,{\left (a+b\,x\right )}^m\,\left (a^2\,d^2\,m^2+a^2\,d^2\,m-2\,a\,b\,c\,d\,m^2-8\,a\,b\,c\,d\,m+b^2\,c^2\,m^2+7\,b^2\,c^2\,m+12\,b^2\,c^2\right )}{{\left (a\,d-b\,c\right )}^3\,{\left (c+d\,x\right )}^{m+4}\,\left (m^3+6\,m^2+11\,m+6\right )}-\frac {2\,b^2\,d^2\,x^3\,{\left (a+b\,x\right )}^m\,\left (4\,b\,c-a\,d\,m+b\,c\,m\right )}{{\left (a\,d-b\,c\right )}^3\,{\left (c+d\,x\right )}^{m+4}\,\left (m^3+6\,m^2+11\,m+6\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________